package com.example.systemend.service.Impl;

import com.example.systemend.Mapper.UserMapper;
import com.example.systemend.pojo.User;
import com.example.systemend.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 权哥
 * @version 1.0
 * @date 2022/6/9 23:24
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;

    @Override
    public User getPasswordByUser(String username) {
        return userMapper.PasswordByUser(username);
    }

    @Override
    public void UserRegister(User user) {
        userMapper.UserRegister(user);
        System.out.println("==========================================");
        System.out.println("注册成功！！！");
    }

    @Override
    public List<User> getUser() {
        return userMapper.getUser();
    }

}
